#include "widget.h"
#include "ui_widget.h"

#include<QRect>
#include<QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QRect ret1 = this->geometry();
    qDebug()<<"ret1:"<<ret1;

    QRect ret2 = this->frameGeometry();
      qDebug()<<"ret2:"<<ret2;

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    QRect ret1 = this->geometry();
    qDebug()<<"ret1:"<<ret1;

    QRect ret2 = this->frameGeometry();
      qDebug()<<"ret2:"<<ret2;
}
